var sys = require('sys');

exports.create = function(playername) {
  return new Player(playername);
}

function Player(playername) {
  this.id = Math.floor(Math.random() * 10000);
  this.playername = playername;
  
  sys.log("Player:construct Creating new player with name '" + this.playername + "' and id '" + this.id + "'");
  
  this.movedToQueue = function(newQueue) {
    sys.log("Player:movedToQueue:event Moving player to new queue")
  }
}